|
|
I had a similar type of problem with a tray of glass marbles. When pov 3.1 and arrays
arrived I solved the problem with a pair of nested #while loops. The outer loop
generated
a random position in the current element of the array, and the 2nd loop checked that
previous entries were more than one diameter away. An OK entry allowed the outer loop
to
increment.
Can't find my old source right now but will have another look if you don't get a
response.
Alf
http://www.peake42.freeserve.co.uk
http://ourworld.compuserve.com/homepages/Alf_Peake/
Ryan Twitchell <try### [at] rochesterrrcom> wrote in message
news:3868e6b4@news.povray.org...
> Hello,
> For the current project I'm working on (see post 'More mushies' in p.b.i),
> I've put a lot of small mushrooms around the base of some larger ones. This
> was done using a while loop to place them all randomly. The problem is, some
> of them intersect with the stems of the larger mushrooms and also with
> themselves. Can anyone here suggest a way to place them (semi) randomly
> without this happening?
>
> Thanks,
> Ryan Twitchell
Post a reply to this message
|
|